package com.ruoyi.process.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.process.mapper.WorkRemosproutillerMapper;
import com.ruoyi.process.domain.WorkRemosproutiller;
import com.ruoyi.process.service.IWorkRemosproutillerService;

/**
 * 除萌蘖管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-12
 */
@Service
public class WorkRemosproutillerServiceImpl implements IWorkRemosproutillerService 
{
    @Autowired
    private WorkRemosproutillerMapper workRemosproutillerMapper;

    /**
     * 查询除萌蘖管理
     * 
     * @param workRemosproutillerId 除萌蘖管理ID
     * @return 除萌蘖管理
     */
    @Override
    public WorkRemosproutiller selectWorkRemosproutillerById(Long workRemosproutillerId)
    {
        return workRemosproutillerMapper.selectWorkRemosproutillerById(workRemosproutillerId);
    }

    /**
     * 查询除萌蘖管理列表
     * 
     * @param workRemosproutiller 除萌蘖管理
     * @return 除萌蘖管理
     */
    @Override
    public List<WorkRemosproutiller> selectWorkRemosproutillerList(WorkRemosproutiller workRemosproutiller)
    {
        return workRemosproutillerMapper.selectWorkRemosproutillerList(workRemosproutiller);
    }

    /**
     * 新增除萌蘖管理
     * 
     * @param workRemosproutiller 除萌蘖管理
     * @return 结果
     */
    @Override
    public int insertWorkRemosproutiller(WorkRemosproutiller workRemosproutiller)
    {
        workRemosproutiller.setCreateTime(DateUtils.getNowDate());
        return workRemosproutillerMapper.insertWorkRemosproutiller(workRemosproutiller);
    }

    /**
     * 修改除萌蘖管理
     * 
     * @param workRemosproutiller 除萌蘖管理
     * @return 结果
     */
    @Override
    public int updateWorkRemosproutiller(WorkRemosproutiller workRemosproutiller)
    {
        workRemosproutiller.setUpdateTime(DateUtils.getNowDate());
        return workRemosproutillerMapper.updateWorkRemosproutiller(workRemosproutiller);
    }

    /**
     * 批量删除除萌蘖管理
     * 
     * @param workRemosproutillerIds 需要删除的除萌蘖管理ID
     * @return 结果
     */
    @Override
    public int deleteWorkRemosproutillerByIds(Long[] workRemosproutillerIds)
    {
        return workRemosproutillerMapper.deleteWorkRemosproutillerByIds(workRemosproutillerIds);
    }

    /**
     * 删除除萌蘖管理信息
     * 
     * @param workRemosproutillerId 除萌蘖管理ID
     * @return 结果
     */
    @Override
    public int deleteWorkRemosproutillerById(Long workRemosproutillerId)
    {
        return workRemosproutillerMapper.deleteWorkRemosproutillerById(workRemosproutillerId);
    }
}
